package com.chixing.day05_oop.word;

/*
public class Main {

    public static void main(String[] args) throws CloneNotSupportedException {
        int MAX=1000;
        List<Order> list = new ArrayList<Order>();
        Product product = new Product(1, "产品1");
        Order order = new Order(2001,"公司订单",product);
        int rest=order.getNum();
        while (rest>MAX) {
            Order temp = (Order) order.clone();
            temp.setNum(MAX);
            list.add(temp);
            rest=order.getNum()-MAX;
            order.setNum(rest);
        }
        list.add(order);
        System.out.println("共有"+list.size()+"份订单");
        for (int i=0; i<list.size(); i++) {
            System.out.println(list.get(i).toString());
        }

    }
}
*/
